home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / wildcat / wcolor.zip / WBB.BAT < prev    next >
DOS Batch File  |  1992-06-01  |  762b  |  31 lines

  1. @echo off
  2. if "%1" == ""    goto ERROR
  3. if "%2" == ""    goto ERROR
  4. if "%2" == "*.*" goto REPEAT
  5. if "%2" == "."   goto REPEAT
  6.  
  7. wcolor -ib%1 -ob%2 -d%3
  8. goto CHECK
  9.  
  10. :REPEAT
  11. wcolor -ib%1 -ob%1 -d%3
  12.  
  13. :CHECK
  14. if errorlevel 0 goto EXIT
  15. goto ERROR
  16.  
  17. :ERROR
  18. echo .
  19. echo Batch format is "wbb bbs_in_file bbs_out_file [speed]"
  20. echo   --} eg. "wbb mainh.bbs mainh.bbs 2400".
  21. echo .
  22. echo This example will display "mainh.bbs" at roughly 2400 baud, and resave it
  23. echo in file "mainh.bbs" - optimized!  Leaving "speed" blank is equivalent to
  24. echo entering "0".
  25. echo .
  26. echo Input and output file names may be unique to prevent overwriting original.
  27. echo For the output file name, "*.*" or "." may be used to retain input file
  28. echo name.
  29. echo .
  30.  
  31. :EXIT